package com.xuexiang.xuidemo.ability;

import ohos.aafwk.content.Intent;

import com.xuexiang.xui_lib.util.StatusBarUtils;
import com.xuexiang.xuidemo.slice.picker.AddressPickerAbilitySlice;
import com.xuexiang.xuidemo.slice.picker.OptionsPickerAbilitySlice;
import com.xuexiang.xuidemo.slice.picker.PickerAbilitySlice;
import com.xuexiang.xuidemo.slice.picker.RulerViewSlice;
import com.xuexiang.xuidemo.slice.picker.SeekBarAbilitySlice;
import com.xuexiang.xuidemo.slice.picker.TimePickerAbilitySlice;

/**
 * 选择器
 */
public class PickerAbility extends BaseStatusAbility {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        StatusBarUtils.translucent();
        StatusBarUtils.fullScreen();
        super.setMainRoute(PickerAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, SeekBarAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, AddressPickerAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, RulerViewSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, OptionsPickerAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, TimePickerAbilitySlice.class.getName());
    }

}
